<extend name="Public:index" />
<block name="main-crumb">
	<li class="active">菜单添加</li>
</block>
<block name="main-content">
	<div class="container-fluid">
		<div class="row">
			<div class="col-12">
				<div class="card">
					<div class="card-body">
						<form action="__APP__/web/menu/add" method="post" class="definewidth m20">
							<table class="table table-bordered table-hover definewidth m10">
								<tr>
									<td width="10%" class="tableleft">上级菜单：</td>
									<td>
										<input type="hidden" id="parentid" name="data[parentid]" value="{$id}" />
										<if condition="$fmenu eq ''">
											<span id="parentname" style="display:none"></span>
											<span id="menuspan">
												<select id="mdata" name="mdata" onchange="if(this.value!=0){menuselect(this)}">
													<option value="0">无</option>
													<volist name="listdhl" id="mlist">
														<option value="{$mlist[menuid]}">{$mlist[menuname]}</option>
													</volist>
												</select>
											</span>
											<else />
											<span id="parentname" style="">{$fmenu}</span>
											<span id="menuspan">

											</span>
										</if>
										&nbsp;&nbsp;
										<a href="###" style="color: #077AC7;text-decoration: none;" onclick="javascript:menureset()">重选</a>
										&nbsp;&nbsp;<b style="color:#CE0000;">*</b>&nbsp;&nbsp;
									</td>
								</tr>
								<tr>
									<td class="tableleft">菜单名：</td>
									<td><input type="text" name="data[menuname]" id="menuname" /></td>
								</tr>
								<tr>
									<td class="tableleft">链接地址：</td>
									<td>
										<input type="text" name="data[url]" id="url" size="50px" />
									</td>
								</tr>
								<tr>
									<td class="tableleft"></td>
									<td colspan="3">
										<button type="submit" class="btn btn_primary" id="sub" name="sub" type="button" value="保存">保存</button>
										&nbsp;&nbsp;
										<button type="reset" class="btn btn-success" type="reset">清空</button>
									</td>
								</tr>

							</table>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</block>
<block name="myscript">
	<script type="text/javascript" src="__PUBLIC__/web/js/column.js"></script>
	<script src="__PUBLIC__/web/js/common.js"></script>
</block>